/**
 * Copyright 2015-2016 eyaomall.cn
 * All rights reserved.
 *
 * @project
 * @author yuhuafeng
 * @version 1.0
 * @date 2016-01-06
 */
package com.eyaomall.wxmall.service;

import java.util.List;

import com.eyaomall.wxmall.model.vo.CategoryVO;
import com.lycheeframework.core.cmp.kit.PageHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;
/**
 * 类目service接口
 * @author yuhuafeng
 *
 */
public interface CategoryService {

	/**
	 * 分页查询类目库
	 * @param categoryVO
	 * @param httpObject
	 * @return
	 */
	public Pages<?> page(CategoryVO categoryVO, PageHTTPObject httpObject);

	/**
	 * 根据id删除类目
	 * @param id
	 * @return
	 */
	public boolean delete(Integer id);
	
	/**
	 * 根据id查询类目详情
	 * @param categoryId
	 * @return
	 */
	public CategoryVO queryById(Integer categoryId);

	/**
	 * 根据shopid获取分类
	 * @param i
	 * @return
	 */
	public List<CategoryVO> queryByShopId(Integer shopid);
	
	
}
